﻿using SpiderPlatform.Detail;
using SpiderPlatform.Service;
using System;

namespace SpiderPlatform
{
    class Program
    {
        static void Main(string[] args)
        {
            Logger.Info($"running...arges is [{string.Join('|', args)}]");
            if (args != null && args.Length == 1)
            {
                Logger.Info($"run {args[0]}");
                switch (args[0])
                {
                    case "yamibuy":
                        new YamibuyService().doWork();
                        break;
                    case "oscart":
                        new OscartService().doWork();
                        break;
                    case "ranch":
                        new RanchService().doWork();
                        break;
                    case "redmall":
                        new RedMallService().doWork();
                        break;
                    case "weee":
                        new WeeeService().doWork();
                        break;
                    case "kouhigh":
                        new KouhighService().doWork();
                        break;
                    default:
                        break;
                }
            }
            //new MappingTools().doWork();
            // new OscartDetailService().doWork();
            // new RanchDetailService().doWork();
            // new ImageService().doWork();
           // new MatchServie().doWorkAsync().Wait();
            Console.WriteLine("任务结束......");
        }
    }
}
